<?php
include_once('php/includes/definer.php');
include_once('php/checkers/login.checker.php');
//borrar temporales
foreach(glob(INC.'content/tmp/home/*') as $image) {
    @unlink($image);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<?php include_once('php/includes/jsDefiner.php'); ?>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Estudio Fuseo - Administrador</title>
<link rel="stylesheet" type="text/css" href="<?php echo(URL); ?>css/bootstrap.min.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo(URL); ?>css/bootstrap-responsive.min.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo(URL); ?>admin/css/jquery-ui-1.8.23.custom.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo(URL); ?>admin/css/fileuploader.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo(URL); ?>admin/css/estilos.css" media="screen" />
<script src="<?php echo(URL); ?>admin/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo(URL); ?>admin/js/jquery-ui.js" type="text/javascript"></script>
<script src="<?php echo(URL); ?>admin/js/fileuploader.js" type="text/javascript"></script>
<script src="<?php echo(URL); ?>js/bootstrap.min.js" type="text/javascript"></script>
<script src="<?php echo(URL); ?>admin/js/replacer.js" type="text/javascript"></script>
<script src="<?php echo(URL); ?>admin/js/admin.js" type="text/javascript"></script>
<script src="<?php echo(URL); ?>admin/js/home.js" type="text/javascript"></script>
</head>
<body>
<div id="contenido">
    <div class="container" style="margin: 0 auto">    
    <?php include_once('tpl/header.html'); ?>
        <div class="row-fluid">
            <?php include_once('tpl/nav.html'); ?>
            <div class="span9">
                <div class="page-header" style="margin-top: 8px">
                    <h1>Home</h1>
                </div>
                <form class="form-vertical well" id="formHome" method="post" action="<?php echo(URL); ?>admin/php/controllers/home.controller.php" enctype="multipart/form-data">
                    
                    <ul id="listarHome" class="thumbnails ui-sortable">

                    </ul>
                    <p id="contenedorBoton"></p>
                    <div id="contenedorDropZone" style="clear: both"></div>
                    <input type="hidden" name="identifier" id="identifier" value="<?php echo(time()); ?>" />
                    <div id="demo"></div>
                     <div class="form-actions" style="text-align: right">
                        <button type="submit" class="btn btn-large btn-primary">Enviar</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <?php
        include_once('tpl/footer.html');
        include_once('tpl/homeItem.html');
        include_once('tpl/borrar.html');
        include_once('tpl/loader.html');
    ?>
</div>
</body>
</html>